//
//  LOLWebViewController.m
//  LOLXXbox
//
//  Created by mac on 16/2/27.
//  Copyright © 2016年 Grasstrio. All rights reserved.
//

#import "LOLWebViewController.h"

@interface LOLWebViewController ()<UIWebViewDelegate>
@property (nonatomic,strong)UIWebView *webview;
@end

@implementation LOLWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
   _webview =[[UIWebView alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height-64)];
    _webview.dataDetectorTypes = UIDataDetectorTypeAll;
    _webview.scalesPageToFit = YES;
    _webview.delegate = self;
    NSURL *urla = [NSURL URLWithString:self.url];
    NSURLRequest *request = [NSURLRequest requestWithURL:urla];
    [self.webview loadRequest:request];
    [self.view addSubview:_webview];
    [_webview reload];


}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
